<div class="easyui-panel" title="" style="width:486px">
    <div style="padding:10px 60px 10px 60px">

            <table cellpadding="5">
                <tr>
                    <td>被举报人:</td>
                    <td><{$reported_name}></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="blackUser(<{$report['reported_id']}>)">拉黑此用户</a></td>
                </tr>
                <tr>
                    <td>举报信息:</td>
                    <td><{$report['content']}></td>
                </tr>
                <tr>
                    <td>举报人:</td>
                    <td><{$reporter_name}></td>
                </tr>
                <tr>
                    <td>举报时间:</td>
                    <td><{$report['time']}></td>
                </tr>
                <tr>
                    <td>处理意见:</td>
                    <td><input id="content_input" class="easyui-textbox" name="content" data-options="multiline:true" style="height:60px" value="<{$report['feedback']}>"></input></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="submit_feedback(<{$report['report_id']}>)">提交处理意见</a></td>
                </tr>

            </table>


    </div>
</div>

        <script>
            function blackUser(id){
                if(typeof(id) !== 'number'){
                    $.messager.alert('提示信息', '未选择用户', 'error');
                    return false;
                }
                $.messager.confirm('提示信息', '确定要进行此操作吗？', function(result){
                    if(!result) return false;
                    $.post('<{:U('Member/memberBlack')}>', {id: id}, function(res){
                        if(!res.status){
                            $.messager.alert('提示信息', res.info, 'error');
                        }else{
                            $.messager.alert('提示信息', res.info, 'info');
                        }
                    }, 'json');
                });

            }
            function submit_feedback(val){
                var content = $("#content_input").val();

                if(content==null || content == ""){
                    alert("请填写反馈信息后再提交！");
                }else{
                    $.ajax({
                        url:'<{:U('Report/reportDeal')}>&report_id='+val,
                            type: 'POST',
                            data: {content:$("#content_input").val()},
                    timeout: 3000,
                            success: function (data) {

                            alert(data);
                            reportReportRefresh();
                            $('#report_reportlist_view_dialog').dialog('close');
                    },
                    async: false
                });

                }

            }

        </script>